package com.devunion.salon.persistence;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Column;

/**
 *
 CREATE TABLE `location` (
   `id` int(11) NOT NULL auto_increment,
   `name` varchar(255) NOT NULL,
   `address` varchar(255) default NULL,
   `currency` char(3) default NULL,
   `serviceTaxes` decimal(10,3) default NULL,
   PRIMARY KEY  (`id`)
 ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;
 *
 * @author Viktar Liaskovich
 */
@Entity
@Table(name = "location")
public class Location extends BasePersistentObject{

    @Column(name = "name", nullable = false)
    private String name;

    @Column(name = "address", nullable = true)
    private String address;

    @Column(name = "currency", length = 3, nullable = true)
    private String currency;

    @Column(name = "serviceTaxes", nullable = true)
    private Float serviceTaxes;

    @Column(name = "productTaxes", nullable = true)
    private Float productTaxes;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getCurrency() {
        return currency;
    }

    public void setCurrency(String currency) {
        this.currency = currency;
    }

    public Float getServiceTaxes() {
        return serviceTaxes;
    }

    public void setServiceTaxes(Float serviceTaxes) {
        this.serviceTaxes = serviceTaxes;
    }

    public Float getProductTaxes() {
        return productTaxes;
    }

    public void setProductTaxes(Float productTaxes) {
        this.productTaxes = productTaxes;
    }
}
